package com.neusoft.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 打折活动
 *
 * @author Lucifer
 * @since 2021/5/16 13:04
 */
@Data
@TableName("sale")
@ApiModel("打折表-sale")
public class Sale {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("打折多少：如果5折，值为0.5")
    private double percent;

    @ApiModelProperty("打折说明")
    private String description;

    @ApiModelProperty("创建时间")
    private Date create_time;

    @ApiModelProperty("更新时间")
    private Date update_time;

    @TableField(exist = false)
    @ApiModelProperty("新增编辑时传的商品ID集合")
    private Integer[] item_ids;

    @ApiModelProperty("商品名称集合")
    @TableField(exist = false)
    private String item_names;
}
